$OpenBSD: patch-Makefile,v 1.1.1.1 2009/03/16 20:42:41 sturm Exp $
--- Makefile.orig	Sat Aug  2 20:36:10 2008
+++ Makefile	Mon Mar 16 21:20:36 2009
@@ -15,15 +15,12 @@ options:
 	@echo "LD       = ${LD}"
 
 .c.o:
-	@echo CC $<
-	@${CC} -c ${CFLAGS} $<
+	${CC} -c ${CFLAGS} $<
 
 ${OBJ}: config.mk
 
 wmname: ${OBJ}
-	@echo LD $@
-	@${LD} -o $@ ${OBJ} ${LDFLAGS}
-	@strip $@
+	${LD} -o $@ ${OBJ} ${LDFLAGS}
 
 clean:
 	@echo cleaning
@@ -38,10 +35,9 @@ dist: clean
 	@rm -rf wmname-${VERSION}
 
 install: all
-	@echo installing executable file to ${DESTDIR}${PREFIX}/bin
-	@mkdir -p ${DESTDIR}${PREFIX}/bin
-	@cp -f wmname ${DESTDIR}${PREFIX}/bin
-	@chmod 755 ${DESTDIR}${PREFIX}/bin/wmname
+	@echo installing executable file to ${PREFIX}/bin
+	${BSD_INSTALL_PROGRAM_DIR} ${PREFIX}/bin
+	${BSD_INSTALL_PROGRAM} wmname ${PREFIX}/bin
 
 uninstall:
 	@echo removing executable file from ${DESTDIR}${PREFIX}/bin
